package com.emcom.gotour.mvc.message;

import javax.servlet.http.HttpServletRequest;

import org.springframework.context.MessageSource;

import com.emcom.gotour.utils.LocaleUtils;

public enum SchedulerMessage {
	ID("scheduler.content.id"),
	TourId("scheduler.content.tourId"),
	Name("scheduler.content.name"),
	Content("scheduler.content.content"),
	Dinner("scheduler.content.dinner"),
	Hotel("scheduler.content.hotel"),
	Comments("scheduler.content.comments");
	private String message;
	private SchedulerMessage(String message) {
		this.message = message;
	}
	public String value(HttpServletRequest request, MessageSource messageSource) {
		return messageSource.getMessage(message, null, LocaleUtils.getLocale(request));
	}
}
